<#include "/common/_itjson_layout.ftl" />
<@itjsonCommonLayout "jsonzip">

<!-- begin主体 -->

<div role="alert" class="alert alert-success alert-dismissible">
                <button aria-label="Close" data-dismiss="alert" class="close" type="button">
                    <span aria-hidden="true">×</span></button>
                <code>[压缩]</code>、<code>[转义]</code>、<code>[压缩并转义JSON]</code>、<code>[去除转义]</code>、<code>[Unicode转中文]</code>、<code>[中文转Unicode]</code>、<code>[中文符号转英文符号]</code>
            </div>


<div class="panel">
    <form id="form1" class="form-horizontal" action="${www}"
    method="post">
        <div class="form-group">
            <div class="col-sm-12">
                <textarea id="json_input" name="json_input" rows="17" style="width:100%"placeholder="请来一段JSON，骚年。"></textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-12">
				<button type="button" class="btn btn-default" onclick="yasuo(1);">压缩</button>
				<button type="button" class="btn btn-primary" onclick="yasuo(2);">转义</button>
				<button type="button" class="btn btn-success" onclick="yasuo(3);">压缩并转义</button>
				<button type="button" class="btn btn-info" onclick="yasuo(4);">去除转义</button>
				<button type="button" class="btn btn-warning" onclick="u2h();">Unicode转中文</button>
				<button type="button" class="btn btn-danger" onclick="h2u();">中文转Unicode</button>
				<button type="button" class="btn btn-danger" onclick="f2f();">中文符号转英文符号</button>
                <span id="copyallcode" class="btn btn-info" data-clipboard-target="json_input">复制结果</span>
            </div>
        </div>
        <!-- begin 解析结果提示栏 -->
        <div class="form-group">
            <div class="col-sm-12">
                <div class="alert alert-success alert-dismissible text-left" role="alert"id="results">请输入要压缩的Json字符串</div>
            </div>
        </div>
        <!-- end 解析结果提示栏 -->
        
    </form>
</div>
<!-- end主体 -->

</@itjsonCommonLayout>